[[inputs.mongodb]]
    servers = [
        {% if username %}
        "mongodb://{{ username }}:${PASSWORD__{{ config_id }}}@{{ host }}:{{ port }}/?connect=direct"
        {% else %}
        "mongodb://{{ host }}:{{ port }}/?connect=direct"
        {% endif %}
    ]
    interval = "{{ interval }}s"

    [inputs.mongodb.tags]
        instance_id = "{{ instance_id }}"
        instance_type = "{{ instance_type }}"
        collect_type = "database"
        config_type = "mongodb"
